<?php

/**
 * BaseYearsForm
 * 
 * 
 * @property integer $id
 * @property string $nombre
 * @property Doctrine_Collection $departamento
 * 
 * @method integer             getId()           Returns the current record's "id" value
 * @method string              getNombre()       Returns the current record's "nombre" value
 * @method Doctrine_Collection getDepartamento() Returns the current record's "departamento" collection
 * @method Provincia           setId()           Sets the current record's "id" value
 * @method Provincia           setNombre()       Sets the current record's "nombre" value
 * @method Provincia           setDepartamento() Sets the current record's "departamento" collection
 * 
 * @package    proy01
 * @subpackage model
 * @author     Alejandro Gaikovski
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
class BaseYearsForm 
{
    public static function years()
    {
        $yearToday = idate("Y");
        return range($yearToday - 120, $yearToday - 17);
    }

    public static function minYear()
    {
        return idate("Y") - 120;
    }

    public static function maxYear()
    {
        return idate("Y") - 17;
    }
}